package com.hongdee.crm.weChat.service.impl;

import com.hongdee.crm.weChat.dao.ITCrmBcSeriesDao;
import com.hongdee.crm.weChat.service.ITBcCarSeriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Liu XiaoLong
 * Date: 2017/10/23.
 * Remark:
 */
@Service
public class WechatTCrmBcSeriesServicImpl implements ITBcCarSeriesService {
    @Autowired
    private ITCrmBcSeriesDao itCrmBcSeriesDao;
    private String tableName = "t_bc_car_series";
    @Override
    public List getSeriesList() throws Exception {
        String sql = "select id,car_series_name name from "+tableName+" ";

        return itCrmBcSeriesDao.list(sql);
    }
}
